package cn.dglydrpy.fundmanagement.dao.entiey;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import java.math.BigDecimal;

@TableName("transaction")
@Data
public class Transaction {
    @TableId(type = IdType.AUTO)
    private Long id;

    @TableField("fund_code")
    private String fundCode;

    @TableField("fund_name")
    private String fundName;

    @TableField("transaction_type")
    private String transactionType; // 1-买入 2-卖出

    @TableField("shares")
    private BigDecimal shares;

    @TableField("price")
    private BigDecimal price;

    @TableField("fee")
    private BigDecimal fee;

    @TableField("amount")
    private BigDecimal amount;

    @TableField("transaction_time")
    private String transactionTime;

    @TableField("created_time")
    private String createdTime;

    @TableField("updated_time")
    private String updatedTime;

    @TableField("status")
    private String status;
}